#ifndef MAINHEADER_H
#define MAINHEADER_H
#define u32 unsigned long
#define u16 unsigned short
#define u8 unsigned char
#define s32 signed long
#define s16 signed short
#define s8 signed char




#include <Windows.h>
#include <stdio.h>
#include <time.h>

//#include "Misc.h"
#include <vector>
#include <algorithm>
#include <string>
#include "backbuffer.h"
#include "image.h"
#include "resource.h"
#include "Structures.h"
#include "GBAMethods.h"
#include "Door Connections.h"

#include "Engine.h"
#include "sChecks.h"
#include "sList.h"
#include "sCombo.h"
#include "clsScroll.h"
#include "cStatEd.h"
#include "cSSE.h"
#include "cOAMEDIT.h"
#include "cClipboard.h"
#include "wndBGImport.h"
#include "mmD.h"
#include "cTED.h"
#include "TSAEditor.h"

#include "globals.h"
//using namespace std;
#include "FunctionPrototypes.h"
EXT Image       SpritePics[17];
EXT int         DrawAll;
EXT RECT OverallSize[16];
EXT OverAllOAM thisoam[0x100][512];

EXT u16 SpriteNo[17];
EXT long SprPal[0x1000];

EXT mmD  Minimap;



EXT cTED TextEditor;
EXT cTSAEditorClass MyTSAEditor;

EXT int keys;
EXT int keyno;
EXT WINDOWPLACEMENT IsTSA;
EXT sSpriteTable SpriteTable[512]; // 1st is Sprite Index Number 
							   //2nd is how many frames
							   //3rd is how offsets
EXT u32 ZMSpritePos[0xFF][2]; //1st is Sprite ID 2nd array is X and Y respectively
#endif